package com.kgc.service.Impl;

import com.kgc.dao.mapper.SchedulesMapper;
import com.kgc.entity.Schedules;
import com.kgc.service.interf.SchedulesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SchedulesServiceImpl implements SchedulesService {
    @Autowired
    private SchedulesMapper scheduleMapper;

    /**
     * 添加日志
     * @param schedules
     * @return
     */
    @Override
    public int addSchedules(Schedules schedules) {
        return scheduleMapper.addSchedules(schedules);
    }

    @Override
    public int updateSchedules(Schedules schedules) {
        return scheduleMapper.updateSchedules(schedules);
    }

    @Override
    public int deleteSchedules(Schedules schedules) {
        return scheduleMapper.deleteSchedules(schedules);
    }
}
